﻿using TaoSH.Data;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;

using Newtonsoft.Json;
namespace TaoSH.AppCode
{

    #region 业务模块
    public class PT_Pro_CategoryB : BaseEFDao<PT_Pro_Category>
    { }


    public class PT_Pro_ProductB : BaseEFDao<PT_Pro_Product>
    { }



    public class PT_Info_AdvertB : BaseEFDao<PT_Info_Advert>
    { }


    public class PT_Info_NewsB : BaseEFDao<PT_Info_News>
    { }


    public class PT_Pro_AskB : BaseEFDao<PT_Pro_Ask>
    { }


    public class PT_Pro_CommentB : BaseEFDao<PT_Pro_Comment>
    { }


    public class PT_Base_SiteB : BaseEFDao<PT_Base_Site>
    { }

    public class PT_Index_ListB : BaseEFDao<PT_Index_List>
    { }
    public class PT_Info_SitesB : BaseEFDao<PT_Info_Sites>
    { }

    public class PT_Index_TypeB : BaseEFDao<PT_Index_Type>
    {

        public DataTable GetIndexList(string strType)
        {
            DataTable dt = this.GetDTByCommand(" SELECT ID,Type,PID FROM PT_Index_List WHERE TYPE='" + strType + "' ");
            return dt;
        }


        public void UpdateSPID(string strID, int intSPID)
        {
            PT_Index_List Model = new PT_Index_ListB().GetEntity(d => d.ID.ToString() == strID);
            Model.PID = intSPID;
            new PT_Index_ListB().Update(Model);
        }
    
    }

    public class PT_Base_AddressB : BaseEFDao<PT_Base_Address>
    { }


    public class PT_Order_HeaderB : BaseEFDao<PT_Order_Header>
    { }

    public class PT_Order_ItemB : BaseEFDao<PT_Order_Item>
    { }

    public class PT_User_LevelB : BaseEFDao<PT_User_Level>
    { }


    public class PT_Base_LevelB : BaseEFDao<PT_Base_Level>
    
    { }
    public class PT_Base_DisCardB : BaseEFDao<PT_Base_DisCard>
        {

        }
    public class PT_Pro_Category_SXB : BaseEFDao<PT_Pro_Category_SX>
    {

    }


    public class PT_Pro_Product_SXB : BaseEFDao<PT_Pro_Product_SX>
    {

    }
    #endregion
}